﻿using System;

namespace ConsoleApp3
{
    class Program
    {
        static void Main(string[] args)
        {            
            try
            {
                int a = 1;
                int b = 0;
                int result = a / b;
            }
            catch (DivideByZeroException)
            {
                Console.WriteLine(value: "试图除以0.");
            }
            Console.ReadKey();
        }
    }
}
